﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入要查询的形状");
            while (true)
            {
            string name = Console.ReadLine();
            if (name == "长方形")
            {
                triangle t1 = new triangle();
                t1.temp();
                break;
            }
            else if (name == "三角形")
            {
                quadrangle q1 = new quadrangle();
                q1.temp();
                break;
            }
            else if (name =="圆形")
            {
                round r1 = new round();
                r1.temp();
                break;
            }
            else
            {
                Console.WriteLine("输入错误，请重新输入");
            }
            }

        }
    }
}
